Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.getCustomDetail = function() {
    var a = 0 < arguments.length && void 0 !== arguments[0] && arguments[0];
    return new Promise(function(u, o) {
        return e.default.data.custom && e.default.data.custom.id && !a ? (e.default.data.customLoading = !1, 
        e.default.getCustomCallBack && "function" == typeof e.default.getCustomCallBack && e.default.getCustomCallBack(e.default.data.custom), 
        void u(e.default.data.custom)) : t.default.post("Custom.getDetail", {}).then(function(t) {
            t.errcode ? o(t) : (e.default.data.custom = t.data, e.default.data.customLoading = !1, 
            e.default.getCustomCallBack && "function" == typeof e.default.getCustomCallBack && e.default.getCustomCallBack(t.data), 
            u(t.data));
        });
    });
};

var t = a(require("../utils/request")), e = a(require("../store/index"));

function a(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}